<template>
  <div id="app">
    <header>
      <router-view name="header" />
    </header>
    <main class="main-container">
      <router-view />
    </main>
    <footer>
      <router-view name="footer" />
    </footer>
  </div>
</template>

<script>
import './_reset.scss' // 重置页面 css 样式

export default {
  name: 'App',
  components: { // 局部组件注册
  }
}
</script>

<style lang="scss" >
  @font-face {
    font-family: 'iconfont';  /* project id 1931594 */
    src: url('//at.alicdn.com/t/font_1931594_v9qpmsdjhkl.eot');
    src: url('//at.alicdn.com/t/font_1931594_v9qpmsdjhkl.eot?#iefix') format('embedded-opentype'),
    url('//at.alicdn.com/t/font_1931594_v9qpmsdjhkl.woff2') format('woff2'),
    url('//at.alicdn.com/t/font_1931594_v9qpmsdjhkl.woff') format('woff'),
    url('//at.alicdn.com/t/font_1931594_v9qpmsdjhkl.ttf') format('truetype'),
    url('//at.alicdn.com/t/font_1931594_v9qpmsdjhkl.svg#iconfont') format('svg');
  }
  .iconfont{
    font-family:"iconfont" !important;
    font-size:16px;font-style:normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: 0.2px;
    -moz-osx-font-smoothing: grayscale;
  }
  html, body {
    height: 100%;
  }
  #app {
    height: 100%;
    display: flex;
    flex-direction: column;

    .main-container {
      flex: 1;
      overflow-y: hidden;
    }
  }
</style>
